package com.xiao.springmvc.jpa;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.xiao.springmvc.entity.ProductInfo;

public interface ProductDao extends JpaRepository<ProductInfo, Long>{

	public Page<ProductInfo> findByCompanyId(long companyId,Pageable pageable);
	
	public Page<ProductInfo> findAll(Pageable pageable);
	
	public ProductInfo findById(long id);
}
